﻿<Page
    x:Class="JarvisProject1.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:JarvisProject1"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d">
    
    <Page.BottomAppBar>
        <AppBar x:Name="bottonAppBar" Padding="10,0,10,0" IsSticky="True">
       <!-- Содержимое -->
            <Grid>
                <StackPanel Orientation="Horizontal">
                    <Button Style="{StaticResource SettingsAppBarButtonStyle}"
                            AutomationProperties.Name="Настройки"/>
                    <Button Style="{StaticResource RefreshAppBarButtonStyle}"
                            AutomationProperties.Name="Обновить"/>
                </StackPanel>
            </Grid>
        </AppBar>
    </Page.BottomAppBar>

    <Page.Resources>
        <CollectionViewSource 
            x:Name="cvsMain" 
            IsSourceGrouped="true" 
            ItemsPath="_Rubrics">
        </CollectionViewSource>
        
        <CollectionViewSource 
            x:Name="cvsMain2" 
            IsSourceGrouped="true" 
            ItemsPath="Messsages">
        </CollectionViewSource>

    </Page.Resources>


    <Grid x:Name="PROFILE" Style="{StaticResource LayoutRootStyle}">
        <Grid.Background>
            <ImageBrush ImageSource="Assets/Fon22.png"/>
        </Grid.Background>
        <ScrollViewer 
            ZoomMode="Enabled"
            HorizontalScrollMode="Enabled"
            HorizontalScrollBarVisibility="Visible"
            VerticalScrollMode="Disabled"
            VerticalScrollBarVisibility="Disabled"
            HorizontalAlignment="Left"
            VerticalAlignment="Top"
            BorderThickness="1" 
            BorderBrush="{x:Null}" 
            Height="634"
            Margin="0,134,0,0"
            Width="1366"
            MaxZoomFactor="10">
            
            <Grid HorizontalAlignment="Left" Height="557" VerticalAlignment="Top" Width="2050">
                <Button Style="{StaticResource TextPrimaryButtonStyle}" Margin="92,10,0,450" >
                    <StackPanel Orientation="Horizontal">
                        <TextBlock Text="Рубрики" Margin="3,3,10,10" Style="{StaticResource GroupHeaderTextStyle}" FontSize="30" />
                        <TextBlock Text="{StaticResource ChevronGlyph}" FontFamily="Segoe UI Symbol" Margin="0,2,0,10" Style="{StaticResource GroupHeaderTextStyle}"/>
                    </StackPanel>
                </Button>
                <Button Style="{StaticResource TextPrimaryButtonStyle}" Margin="731,10,0,450" >
                    <StackPanel Orientation="Horizontal">
                        <TextBlock Text="Сообщения" Margin="3,3,10,10" Style="{StaticResource GroupHeaderTextStyle}" FontSize="30" />
                        <TextBlock Text="{StaticResource ChevronGlyph}" FontFamily="Segoe UI Symbol" Margin="0,2,0,10" Style="{StaticResource GroupHeaderTextStyle}"/>
                    </StackPanel>
                </Button>
                <Button Style="{StaticResource TextPrimaryButtonStyle}" Margin="1364,10,0,450" >
                    <StackPanel Orientation="Horizontal">
                        <TextBlock Text="Избранное" Margin="3,3,10,10" Style="{StaticResource GroupHeaderTextStyle}" FontSize="30" />
                        <TextBlock Text="{StaticResource ChevronGlyph}" FontFamily="Segoe UI Symbol" Margin="0,2,0,10" Style="{StaticResource GroupHeaderTextStyle}"/>
                    </StackPanel>
                </Button>
                <local:VariableGridView
                    x:Name="gvMain2"
                    Background="{StaticResource ComboBoxItemSelectedDisabledBackgroundThemeBrush}"
                    HorizontalAlignment="Left"
                    Height="440" 
                    Margin="731,85,0,0"
                    VerticalAlignment="Top"
                    SelectionMode="Single"
                    ItemsSource="{Binding Source={StaticResource cvsMain2}}" 
                    Width="581" IsSynchronizedWithCurrentItem="False" SelectionChanged="gvMain2_SelectionChanged" Visibility="Collapsed">

                    <local:VariableGridView.ItemTemplate>
                        <DataTemplate>
                            <Grid Style="{StaticResource LayoutRootStyle3}" HorizontalAlignment="Left">
                                <Border Background="{StaticResource ListViewItemPlaceholderBackgroundThemeBrush}">
                                    <Image Source="{Binding ImageAdress}" Stretch="Fill"/>
                                </Border>
                                <StackPanel VerticalAlignment="Bottom" Background="{StaticResource ListViewItemOverlayBackgroundThemeBrush}">
                                    <TextBlock Text="{Binding Name_Message}" Foreground="{StaticResource ListViewItemOverlayForegroundThemeBrush}" Style="{StaticResource TitleTextStyle}" Margin="15,0,15,8"/>
                                </StackPanel>
                            </Grid>
                        </DataTemplate>
                        <!--<DataTemplate>
                            <Grid Background="{StaticResource ComboBoxItemSelectedDisabledBackgroundThemeBrush}">
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="Auto"/>
                                    <ColumnDefinition Width="*"/>
                                </Grid.ColumnDefinitions>
                                <Border
                                    Background="{StaticResource ListViewItemPlaceholderBackgroundThemeBrush}"    
                                    Width="60" Height="60">
                                    <Image 
                                        Source="/Assets/Avatar.png"      
                                        Stretch="Fill"/>
                                </Border>
                                <StackPanel VerticalAlignment="Center" Grid.Column="1" Margin="10,0,0,0">
                                    <TextBlock
                                        Text="{Binding Name_Message}"
                                        MaxHeight="40"
                                        Style="{StaticResource ItemTextStyle}">
                                    </TextBlock>
                                </StackPanel>
                            </Grid>
                        </DataTemplate>-->
                    </local:VariableGridView.ItemTemplate>

                    <local:VariableGridView.GroupStyle>
                        <GroupStyle>
                            <GroupStyle.HeaderTemplate>
                                <DataTemplate>
                                    <Grid Margin="1,0,0,0"/>
                                </DataTemplate>
                            </GroupStyle.HeaderTemplate>
                            <GroupStyle.Panel>
                                <ItemsPanelTemplate>
                                    <VariableSizedWrapGrid Orientation="Vertical"  Margin="0,0,0,0" ItemWidth="100" ItemHeight="100"/>
                                </ItemsPanelTemplate>
                            </GroupStyle.Panel>
                        </GroupStyle>
                    </local:VariableGridView.GroupStyle>

                </local:VariableGridView>
                
                <Grid 
                    Background="{StaticResource ComboBoxItemSelectedDisabledBackgroundThemeBrush}"
                    HorizontalAlignment="Left" 
                    Height="440"
                    Margin="1364,85,0,0"
                    VerticalAlignment="Top"
                    Width="581"/>
                
                <local:VariableGridView 
                    x:Name="gvMain" 
                    HorizontalAlignment="Left" 
                    Margin="92,85,0,32" 
                    Width="581"
                    BorderThickness="1"
                    Background="{StaticResource ComboBoxItemSelectedDisabledBackgroundThemeBrush}"
                    SelectionMode="Single"
                    ItemsSource="{Binding Source={StaticResource cvsMain}}" IsSynchronizedWithCurrentItem="False" SelectionChanged="gvMain_SelectionChanged">

                    <local:VariableGridView.ItemTemplate>
                        <DataTemplate>
                            <Grid Style="{StaticResource LayoutRootStyle3}" HorizontalAlignment="Left">
                                <Border Background="{StaticResource ListViewItemPlaceholderBackgroundThemeBrush}">
                                    <Image Source="{Binding Rubrik_Image_Adress}" Stretch="Fill"/>
                                </Border>
                                <StackPanel VerticalAlignment="Bottom" Background="{StaticResource ListViewItemOverlayBackgroundThemeBrush}">
                                    <TextBlock Text="{Binding RubrikName}" Foreground="{StaticResource ListViewItemOverlayForegroundThemeBrush}" Style="{StaticResource TitleTextStyle}" Margin="15,0,15,8"/>
                                </StackPanel>
                            </Grid>
                        </DataTemplate>
                    </local:VariableGridView.ItemTemplate>

                    <local:VariableGridView.GroupStyle>
                        <GroupStyle>
                            <GroupStyle.HeaderTemplate>
                                <DataTemplate>

                                </DataTemplate>
                            </GroupStyle.HeaderTemplate>
                            <GroupStyle.Panel>
                                <ItemsPanelTemplate>
                                    <VariableSizedWrapGrid Orientation="Vertical" Margin="0,0,80,0" ItemWidth="130" ItemHeight="130"/>
                                </ItemsPanelTemplate>
                            </GroupStyle.Panel>
                        </GroupStyle>
                    </local:VariableGridView.GroupStyle>

                    <local:VariableGridView.ItemsPanel>
                        <ItemsPanelTemplate>
                            <VirtualizingStackPanel Orientation="Horizontal"/>
                        </ItemsPanelTemplate>
                    </local:VariableGridView.ItemsPanel>

                </local:VariableGridView>
            </Grid>
        </ScrollViewer>
        <TextBlock HorizontalAlignment="Left" Height="58" TextWrapping="Wrap" Text="Добавить пользователя" VerticalAlignment="Top" Width="193" FontFamily="Rodeo95" FontSize="24" RenderTransformOrigin="0.455,0" Margin="1002,28,0,0" Opacity="0.5" Visibility="Collapsed"/>

        <!--Блок ВХОДА-->
        <Grid HorizontalAlignment="Left" Height="103" Margin="1036,10,0,0" VerticalAlignment="Top" Width="305">
            <Button x:Name="Avatar_Profile" Style="{StaticResource TextButtonStyle}" HorizontalAlignment="Left" Height="75" Margin="78,0,0,0" VerticalAlignment="Top" Width="227" Click="Avatar_Profile_Click" Visibility="Collapsed">
                <Grid HorizontalAlignment="Left" Height="75" VerticalAlignment="Top" Width="227">
                    <Image x:Name="Avatar_Photo" HorizontalAlignment="Left" Height="58" Margin="163,7,0,0" VerticalAlignment="Top" Width="57" Source="Assets/Avatar.png" Stretch="Fill"/>
                    <TextBlock x:Name="Family_Avatar" HorizontalAlignment="Left" Height="27" Margin="5,10,0,0" TextWrapping="Wrap" Text="Мухаметзянов" VerticalAlignment="Top" Width="153" FontSize="22" TextAlignment="Right"/>
                    <TextBlock x:Name="Name_Avatar" HorizontalAlignment="Left" Height="28" Margin="88,37,0,0" TextWrapping="Wrap" Text="Альберт" VerticalAlignment="Top" Width="70" FontSize="16" TextAlignment="Right"/>
                </Grid>
            </Button>
            <Grid x:Name="IN_and_OUT" HorizontalAlignment="Left" Height="70" VerticalAlignment="Top" Width="300" Margin="5,0,0,0">
                <Button Style="{StaticResource ContactAppBarButtonStyle}" AutomationProperties.Name=" "  Margin="-23,5,0,0" Width="71" Click="Button_Click_4"/>
                <Button Style="{StaticResource AddAppBarButtonStyle}" Margin="168,51,0,-46" Width="74" AutomationProperties.Name="" Visibility="Visible" Click="Button_Click_3" />
                <TextBlock HorizontalAlignment="Left" Height="25" Margin="53,26,0,0" TextWrapping="Wrap" Text="войти" VerticalAlignment="Top" Width="59" FontFamily="Rodeo95" FontSize="20" RenderTransformOrigin="0.455,0" Foreground="#FFFCFDF7"/>
                <Rectangle Fill="#FFDFDFE8" HorizontalAlignment="Left" Height="25" Margin="117,26,0,0" Stroke="#FFFDFAFA" VerticalAlignment="Top" Width="1"/>
                <TextBlock HorizontalAlignment="Left" Height="25" Margin="127,26,0,0" TextWrapping="Wrap" Text="регистрация" VerticalAlignment="Top" Width="115" FontFamily="Rodeo95" FontSize="20" RenderTransformOrigin="0.455,0" Foreground="#FFFCFDF7"/>
            </Grid>
        </Grid>
        <Grid x:Name="Block_Avtor" Style="{StaticResource LayoutRootStyle2}" HorizontalAlignment="Left" Height="647" Margin="475,49,0,0" VerticalAlignment="Top" Width="403" Background="#FF2D325D" Visibility="Collapsed">
            <TextBlock HorizontalAlignment="Left" Height="36" Margin="283,24,0,0" TextWrapping="Wrap" Text="ПРОФИЛЬ" VerticalAlignment="Top" Width="114" FontSize="22"/>
            <TextBlock HorizontalAlignment="Left" Height="32" Margin="24,76,0,0" TextWrapping="Wrap" Text="Ваша учетная запись" VerticalAlignment="Top" Width="204" FontSize="20" Foreground="#FF82E47D"/>
            <Image HorizontalAlignment="Left" Height="100" Margin="24,123,0,0" VerticalAlignment="Top" Width="100" Stretch="Fill" Source="Assets/Avatar.png"/>
            <TextBlock x:Name="Block_Av_Family" HorizontalAlignment="Left" Height="23" Margin="143,123,0,0" TextWrapping="Wrap" Text="Мухаметзянов" VerticalAlignment="Top" Width="254" FontSize="20"/>
            <TextBlock x:Name="Block_Av_Name" HorizontalAlignment="Left" Height="20" Margin="143,146,0,0" TextWrapping="Wrap" Text="Альберт" VerticalAlignment="Top" Width="254" FontSize="16"/>
            <TextBlock x:Name="Block_Av_Email" HorizontalAlignment="Left" Height="18" Margin="143,171,0,0" TextWrapping="Wrap" Text="jarvis.1.0@hotmail.com" VerticalAlignment="Top" Width="256" FontSize="14"/>
            <TextBlock HorizontalAlignment="Left" Height="26" Margin="26,400,0,0" TextWrapping="Wrap" Text="Параметры входа" VerticalAlignment="Top" Width="204" FontSize="20" Foreground="#FF82E47D"/>
            <Button Content="изменить..." HorizontalAlignment="Left" Height="38" Margin="24,440,0,0" VerticalAlignment="Top" Width="169" Background="#FFA6A6A6" Click="Button_Click_11"/>
            <TextBlock x:Name="Block_Av_DateBirth" HorizontalAlignment="Left" Height="17" Margin="141,189,0,0" TextWrapping="Wrap" Text="3 октября 1994" VerticalAlignment="Top" Width="256" FontSize="14"/>
            <TextBlock x:Name="Block_Av_Country" HorizontalAlignment="Left" Height="17" Margin="141,206,0,0" TextWrapping="Wrap" Text="Россия" VerticalAlignment="Top" Width="256" FontSize="14"/>
            <Button Content="обзор..." HorizontalAlignment="Left" Height="38" Margin="22,240,0,0" VerticalAlignment="Top" Width="103" Background="#FFA6A6A6"/>
            <Button Content="камера..." HorizontalAlignment="Left" Height="38" Margin="143,240,0,0" VerticalAlignment="Top" Width="103" Background="#FFA6A6A6"/>
            <TextBlock HorizontalAlignment="Left" Height="26" Margin="26,495,0,0" TextWrapping="Wrap" Text="Персональные данные" VerticalAlignment="Top" Width="222" FontSize="20" Foreground="#FF82E47D"/>
            <Button Style="{StaticResource YesAppBarButtonStyle}"  HorizontalAlignment="Left" Height="88" Margin="281,561,0,0" VerticalAlignment="Top" Width="127" Background="#FFA6A6A6"/>
            <Button Style="{StaticResource PreviousAppBarButtonStyle}" AutomationProperties.Name=" "  Margin="-5,10,0,565" Width="71" Click="Button_Click_13"/>
            <Button Content="изменить..." HorizontalAlignment="Left" Height="38" Margin="24,539,0,0" VerticalAlignment="Top" Width="169" Background="#FFA6A6A6" Click="Button_Click_12"/>
            <TextBlock HorizontalAlignment="Left" Height="26" Margin="26,297,0,0" TextWrapping="Wrap" Text="Статистика" VerticalAlignment="Top" Width="202" FontSize="20" Foreground="#FF82E47D"/>
            <TextBlock HorizontalAlignment="Left" Height="20" Margin="26,328,0,0" TextWrapping="Wrap" Text="Количество публикаций:" VerticalAlignment="Top" Width="182" FontSize="16"/>
            <TextBlock HorizontalAlignment="Left" Height="20" Margin="26,348,0,0" TextWrapping="Wrap" Text="Рейтинг:" VerticalAlignment="Top" Width="182" FontSize="16"/>
            <TextBlock HorizontalAlignment="Left" Height="20" Margin="228,328,0,0" TextWrapping="Wrap" Text="0" VerticalAlignment="Top" Width="87" FontSize="16"/>
            <TextBlock HorizontalAlignment="Left" Height="20" Margin="228,348,0,0" TextWrapping="Wrap" Text="0" VerticalAlignment="Top" Width="87" FontSize="16"/>
        </Grid>
        <Grid x:Name="Redactor_PersonalInfo_Profile" Style="{StaticResource LayoutRootStyle2}" HorizontalAlignment="Left" Height="508" Margin="395,129,0,0" VerticalAlignment="Top" Width="563" Background="#FF34364D" Visibility="Collapsed">

            <Line X1="5" Y1="5" X2="5" Y2="490" Stroke="Silver"  Margin="0,10,0,-10" StrokeThickness="1"/>
            <Line X1="557" Y1="5" X2="557" Y2="490" Stroke="Silver"  Margin="0,10,0,-10" StrokeThickness="1"/>

            <TextBlock HorizontalAlignment="Left" Height="27" Margin="198,30,0,0" TextWrapping="Wrap" Text="ЛИЧНАЯ ИНФОРМАЦИЯ" VerticalAlignment="Top" Width="273" Foreground="White" FontSize="22" FontFamily="Segoe UI Light"/>
            <TextBlock HorizontalAlignment="Left" Height="27" Margin="455,30,0,0" TextWrapping="Wrap" Text="JARVIS" VerticalAlignment="Top" Width="98" Foreground="#FFFF7628" FontSize="22"/>
            <Image HorizontalAlignment="Left" Height="75" Margin="294,71,0,0" VerticalAlignment="Top" Width="75" Stretch="Fill" Source="Assets/Avatar.png"/>
            <TextBlock x:Name="Block_Av_Family1" HorizontalAlignment="Left" Height="23" Margin="387,91,0,0" TextWrapping="Wrap" Text="Мухаметзянов" VerticalAlignment="Top" Width="151" FontSize="20"/>
            <TextBlock x:Name="Block_Av_Name1" HorizontalAlignment="Left" Height="20" Margin="387,114,0,0" TextWrapping="Wrap" Text="Альберт" VerticalAlignment="Top" Width="151" FontSize="16"/>
            <Button Style="{StaticResource YesAppBarButtonStyle}" HorizontalAlignment="Left" Height="86" Margin="441,422,0,0" VerticalAlignment="Top" Width="122" Click="Button_Click_YES"/>
            <Button Style="{StaticResource PreviousAppBarButtonStyle}" HorizontalAlignment="Left" Height="63" Margin="0,10,0,0" VerticalAlignment="Top" Width="87" Click="Button_Click_15"/>
            <TextBlock HorizontalAlignment="Left" Height="26" Margin="47,288,0,0" TextWrapping="Wrap" Text="Дата рождения" VerticalAlignment="Top" Width="149" FontSize="18" Foreground="White"/>
            <ComboBox x:Name="NewMonth" HorizontalAlignment="Left" Height="32" Margin="162,324,0,0" VerticalAlignment="Top" Width="182">
                <ComboBoxItem Content="Январь" FontSize="14"/>
                <ComboBoxItem Content="Февраль" FontSize="14"/>
                <ComboBoxItem Content="Март" FontSize="14"/>
                <ComboBoxItem Content="Апрель" FontSize="14"/>
                <ComboBoxItem Content="Май" FontSize="14"/>
                <ComboBoxItem Content="Июнь" FontSize="14"/>
                <ComboBoxItem Content="Июль" FontSize="14"/>
                <ComboBoxItem Content="Август" FontSize="14"/>
                <ComboBoxItem Content="Сентябрь" FontSize="14"/>
                <ComboBoxItem Content="Октябрь" FontSize="14"/>
                <ComboBoxItem Content="Ноябрь" FontSize="14"/>
                <ComboBoxItem Content="Декабрь" FontSize="14"/>
            </ComboBox>
            <ComboBox x:Name="NewDay" HorizontalAlignment="Left" Height="32" Margin="48,324,0,0" VerticalAlignment="Top" Width="80">
                <ComboBoxItem Content="1" FontSize="14"/>
                <ComboBoxItem Content="2" FontSize="14"/>
                <ComboBoxItem Content="3" FontSize="14"/>
                <ComboBoxItem Content="4" FontSize="14"/>
                <ComboBoxItem Content="5" FontSize="14"/>
                <ComboBoxItem Content="6" FontSize="14"/>
                <ComboBoxItem Content="7" FontSize="14"/>
                <ComboBoxItem Content="8" FontSize="14"/>
                <ComboBoxItem Content="9" FontSize="14"/>
                <ComboBoxItem Content="10" FontSize="14"/>
                <ComboBoxItem Content="11" FontSize="14"/>
                <ComboBoxItem Content="12" FontSize="14"/>
                <ComboBoxItem Content="13" FontSize="14"/>
                <ComboBoxItem Content="14" FontSize="14"/>
                <ComboBoxItem Content="15" FontSize="14"/>
                <ComboBoxItem Content="16" FontSize="14"/>
                <ComboBoxItem Content="17" FontSize="14"/>
                <ComboBoxItem Content="18" FontSize="14"/>
                <ComboBoxItem Content="19" FontSize="14"/>
                <ComboBoxItem Content="20" FontSize="14"/>
                <ComboBoxItem Content="21" FontSize="14"/>
                <ComboBoxItem Content="22" FontSize="14"/>
                <ComboBoxItem Content="23" FontSize="14"/>
                <ComboBoxItem Content="24" FontSize="14"/>
                <ComboBoxItem Content="25" FontSize="14"/>
                <ComboBoxItem Content="26" FontSize="14"/>
                <ComboBoxItem Content="27" FontSize="14"/>
                <ComboBoxItem Content="28" FontSize="14"/>
                <ComboBoxItem Content="29" FontSize="14"/>
                <ComboBoxItem Content="30" FontSize="14"/>
                <ComboBoxItem Content="31" FontSize="14"/>
            </ComboBox>
            <TextBox x:Name="NewYear" HorizontalAlignment="Left" Height="26" Margin="369,324,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="80" FontSize="14"/>
            <TextBlock HorizontalAlignment="Left" Height="26" Margin="47,183,0,0" TextWrapping="Wrap" Text="Имя" VerticalAlignment="Top" Width="75" FontSize="18" Foreground="White"/>
            <TextBlock HorizontalAlignment="Left" Height="26" Margin="47,232,0,0" TextWrapping="Wrap" Text="Фамилия" VerticalAlignment="Top" Width="95" FontSize="18" Foreground="White"/>
            <TextBox x:Name="NewName" HorizontalAlignment="Left" Height="26" Margin="162,177,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="182" FontSize="14"/>
            <TextBox x:Name="NewSurname" HorizontalAlignment="Left" Height="26" Margin="162,229,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="182" FontSize="14"/>
            <ComboBox x:Name="NewCountry" HorizontalAlignment="Left" Height="32" Margin="162,379,0,0" VerticalAlignment="Top" Width="120">
                <ComboBoxItem Content="Россия" FontSize="14"/>
                <ComboBoxItem Content="Америка" FontSize="14"/>
            </ComboBox>
            <TextBlock HorizontalAlignment="Left" Height="26" Margin="47,385,0,0" TextWrapping="Wrap" Text="Страна" VerticalAlignment="Top" Width="75" FontSize="18" Foreground="White"/>
            <TextBlock HorizontalAlignment="Left" Height="26" Margin="47,439,0,0" TextWrapping="Wrap" Text="Пол" VerticalAlignment="Top" Width="75" FontSize="18" Foreground="White"/>
            <ComboBox x:Name="NewPol" HorizontalAlignment="Left" Height="32" Margin="162,433,0,0" VerticalAlignment="Top" Width="120">
                <ComboBoxItem Content="Мужчина" FontSize="14"/>
                <ComboBoxItem Content="Женщина" FontSize="14"/>
                <ComboBoxItem Content="Не выбран" FontSize="14"/>
            </ComboBox>
        </Grid>
        <Grid x:Name="Redactor_Vxod_Profile" Style="{StaticResource LayoutRootStyle2}" HorizontalAlignment="Left" Height="508" Margin="395,129,0,0" VerticalAlignment="Top" Width="563" Background="#FF34364D" Visibility="Collapsed">

            <Line X1="5" Y1="5" X2="5" Y2="490" Stroke="Silver"  Margin="0,10,0,-10" StrokeThickness="1"/>
            <Line X1="557" Y1="5" X2="557" Y2="490" Stroke="Silver"  Margin="0,10,0,-10" StrokeThickness="1"/>

            <TextBlock HorizontalAlignment="Left" Height="27" Margin="262,30,0,0" TextWrapping="Wrap" Text="УЧЕТНАЯ ЗАПИСЬ" VerticalAlignment="Top" Width="202" Foreground="White" FontSize="22" FontFamily="Segoe UI Light"/>
            <TextBlock HorizontalAlignment="Left" Height="27" Margin="455,30,0,0" TextWrapping="Wrap" Text="JARVIS" VerticalAlignment="Top" Width="98" Foreground="#FFFF7628" FontSize="22"/>
            <Image HorizontalAlignment="Left" Height="75" Margin="294,71,0,0" VerticalAlignment="Top" Width="75" Stretch="Fill" Source="Assets/Avatar.png"/>
            <TextBlock x:Name="Block_Av_Family2" HorizontalAlignment="Left" Height="23" Margin="384,76,0,0" TextWrapping="Wrap" Text="Мухаметзянов" VerticalAlignment="Top" Width="151" FontSize="20"/>
            <TextBlock x:Name="Block_Av_Name2" HorizontalAlignment="Left" Height="20" Margin="384,99,0,0" TextWrapping="Wrap" Text="Альберт" VerticalAlignment="Top" Width="151" FontSize="16"/>
            <TextBlock x:Name="Block_Av_Email2" HorizontalAlignment="Left" Height="18" Margin="384,124,0,0" TextWrapping="Wrap" Text="jarvis.1.0@hotmail.com" VerticalAlignment="Top" Width="174" FontSize="14"/>
            <PasswordBox x:Name="OldPassword" HorizontalAlignment="Left" Height="27" Margin="218,185,0,0" VerticalAlignment="Top" Width="216" IsPasswordRevealButtonEnabled="True" FontSize="14"/>
            <HyperlinkButton Content="Забыли пароль?" HorizontalAlignment="Left" Height="39" Margin="201,222,0,0" VerticalAlignment="Top" Width="151" Foreground="#FF3CFF68"/>
            <TextBlock HorizontalAlignment="Left" Height="20" Margin="70,275,0,0" TextWrapping="Wrap" Text="Новый пароль" VerticalAlignment="Top" Width="130" FontSize="16"/>
            <TextBlock HorizontalAlignment="Left" Height="20" Margin="70,192,0,0" TextWrapping="Wrap" Text="Старый пароль" VerticalAlignment="Top" Width="130" FontSize="16"/>
            <PasswordBox x:Name="NewPassWord" HorizontalAlignment="Left" Height="27" Margin="217,269,0,0" VerticalAlignment="Top" Width="216" IsPasswordRevealButtonEnabled="True" FontSize="14"/>
            <TextBlock HorizontalAlignment="Left" Height="20" Margin="70,335,0,0" TextWrapping="Wrap" Text="Потверждение" VerticalAlignment="Top" Width="130" FontSize="16"/>
            <PasswordBox x:Name="DoublePassword" HorizontalAlignment="Left" Height="27" Margin="217,328,0,0" VerticalAlignment="Top" Width="216" IsPasswordRevealButtonEnabled="True" FontSize="14"/>
            <Button Style="{StaticResource YesAppBarButtonStyle}" HorizontalAlignment="Left" Height="86" Margin="441,422,0,0" VerticalAlignment="Top" Width="122" Click="Button_Click_VHOD_YES"/>
            <Button Style="{StaticResource PreviousAppBarButtonStyle}" HorizontalAlignment="Left" Height="63" Margin="0,10,0,0" VerticalAlignment="Top" Width="87" Click="Button_Click_14"/>
            <TextBlock HorizontalAlignment="Left" Height="20" Margin="70,394,0,0" TextWrapping="Wrap" Text="E-mail" VerticalAlignment="Top" Width="91" FontSize="16"/>
            <TextBox x:Name="NewEmail" HorizontalAlignment="Left" Height="20" Margin="218,388,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="215"/>
        </Grid>
        <Grid x:Name="GRID_VXOD" HorizontalAlignment="Left" Height="347" Margin="317,193,0,0" VerticalAlignment="Top" Width="687" Visibility="Collapsed">
            <Grid x:Name="Grid_0" Style="{StaticResource LayoutRootStyle}" HorizontalAlignment="Left" Height="347" VerticalAlignment="Top" Width="617" Background="#FF34364D">
                <TextBlock HorizontalAlignment="Left" Height="52" Margin="36,34,0,0" TextWrapping="Wrap" Text="WINDOWS LIVE ID" VerticalAlignment="Top" Width="338" FontSize="36" FontFamily="Rodeo95" Foreground="#FF67F161" Opacity="0.5"/>
                <TextBlock HorizontalAlignment="Left" Height="71" Margin="36,91,0,0" TextWrapping="Wrap" Text="IMPORTANT: When you sign in, use the same email address and password combination you used on you phone. Any other email address or password not suitable." VerticalAlignment="Top" Width="580" Foreground="White" FontSize="16"/>
                <TextBox x:Name="Login" HorizontalAlignment="Left" Height="17" Margin="36,195,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="312"  BorderBrush="Black" Foreground="Black" Opacity="0.7" FontSize="16" Text="Логин" GotFocus="Login_GotFocus"/>
                <PasswordBox x:Name="Password" HorizontalAlignment="Left" Height="3" Margin="36,232,0,0" VerticalAlignment="Top" Width="312" BorderBrush="Black" Opacity="0.7" Foreground="Black" FontSize="16" GotFocus="Password_GotFocus" IsPasswordRevealButtonEnabled="True"/>
                <CheckBox Content="Запомнить пароль" HorizontalAlignment="Left" Height="27" Margin="36,274,0,0" VerticalAlignment="Top" Width="178" Foreground="White" FontSize="14"/>
                <CheckBox Content="Запомнить меня" HorizontalAlignment="Left" Height="29" Margin="36,301,0,0" VerticalAlignment="Top" Width="166" Foreground="White" FontSize="14"/>
                <CheckBox Content="Автоматическое заполнение" HorizontalAlignment="Left" Height="29" Margin="367,274,0,0" VerticalAlignment="Top" Width="230" Foreground="White" FontSize="14"/>
                <Button Style="{StaticResource ContactAppBarButtonStyle}" AutomationProperties.Name=" "  Margin="348,200,0,78" Width="75" Click="Button_Click_5"/>

                <TextBox x:Name="RAM" HorizontalAlignment="Left" Height="22" Margin="565,195,0,0" TextWrapping="Wrap" Text="TextBox" VerticalAlignment="Top" Width="90" BorderBrush="Red" Visibility="Collapsed"/>
                <TextBox x:Name="RAM2" HorizontalAlignment="Left" Height="22" Margin="565,227,0,0" TextWrapping="Wrap" Text="TextBox" VerticalAlignment="Top" Width="90" BorderBrush="Black" RenderTransformOrigin="0.555,1.882" Visibility="Collapsed"/>
                <Button Style="{StaticResource OutAppBarButtonStyle}" AutomationProperties.Name=" "  Margin="423,200,0,78" Width="75" Click="Button_Click_10" />
            </Grid>
            <Grid HorizontalAlignment="Left" Height="347" Margin="617,0,0,0" VerticalAlignment="Top" Width="44" Background="#FF65C6EA"/>
        </Grid>
        <Grid x:Name="GRID_REGISTER" Style="{StaticResource LayoutRootStyle}" HorizontalAlignment="Left" Height="461" Margin="341,167,0,0" VerticalAlignment="Top" Width="690" Background="{x:Null}" Visibility="Collapsed">
            <!--#1-->
            <Grid Style="{StaticResource LayoutRootStyle}" x:Name="Grid_1" HorizontalAlignment="Left" Height="456" Margin="0,5,0,0" VerticalAlignment="Top" Width="622" Visibility="Visible" Background="#FF34364D">
                <TextBlock HorizontalAlignment="Left" Height="38" Margin="57,38,0,0" TextWrapping="Wrap" Text="ВАС ПРИВЕТСТВУЕТ JARVIS" VerticalAlignment="Top" Width="321" Foreground="#FF67F161" FontSize="22"/>
                <TextBox x:Name="Email" HorizontalAlignment="Left" Height="12" Margin="57,272,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="506" BorderBrush="Black" Opacity="0.5" GotFocus="Email_GotFocus"/>
                <TextBlock HorizontalAlignment="Left" Height="77" Margin="57,81,0,0" TextWrapping="Wrap" Text="Зарегистрироваться можно быстро и легко. Просто введите или создайте адрес электронной почты, который будет использоваться для входа в учетную запись JARVIS." VerticalAlignment="Top" Width="562" Foreground="White" FontSize="16"/>
                <TextBlock HorizontalAlignment="Left" Height="29" Margin="57,180,0,0" TextWrapping="Wrap" Text="СОЗДАНИЕ УЧЕТНОЙ ЗАПИСИ" VerticalAlignment="Top" Width="291" Foreground="#FFF4FF04" FontSize="16"/>
                <TextBlock HorizontalAlignment="Left" Height="49" Margin="57,209,0,0" TextWrapping="Wrap" Text="Введите адрес эдектронной почты. Чтобы создать учетную запись, можно использовать индетификатор WINDOWS LIVE ID." VerticalAlignment="Top" Width="544" Foreground="White" FontSize="16"/>
                <HyperlinkButton Content="у меня нет адреса электронной почты" HorizontalAlignment="Left" Height="40" Margin="36,296,0,0" VerticalAlignment="Top" Width="312" Foreground="#FFB6B6B6"/>
                <Button Style="{StaticResource NextAppBarButtonStyle}" AutomationProperties.Name=" "  Margin="411,380,0,10" Width="78" Click="Button_Click_1"/>
                <Button x:Name="Out1" Style="{StaticResource OutAppBarButtonStyle}" AutomationProperties.Name=" "  Margin="489,380,0,10" Width="74" Click="Out1_Click" />

                <!--#2-->
                <Grid Style="{StaticResource LayoutRootStyle}" x:Name="Grid_2" HorizontalAlignment="Left" Height="456" VerticalAlignment="Top" Width="619" Visibility="Collapsed" Background="#FF34364D">
                    <Button Style="{StaticResource NextAppBarButtonStyle}" AutomationProperties.Name=" "  Margin="412,380,0,10" Width="78" Click="Button_Click_2"/>
                    <Button Style="{StaticResource PreviousAppBarButtonStyle}" AutomationProperties.Name=" "  Margin="329,380,0,10" Width="78" Click="Button_Click_9"/>
                    <Button x:Name="Out2" Style="{StaticResource OutAppBarButtonStyle}" AutomationProperties.Name=" "  Margin="490,380,0,10" Width="73" BorderThickness="2" HorizontalAlignment="Left" Click="Out2_Click"/>

                    <TextBlock HorizontalAlignment="Left" Height="21" Margin="51,54,0,0" TextWrapping="Wrap" Text="Тег JARVIS. Это ваше уникальное имя в службе JARVIS Social." VerticalAlignment="Top" Width="512" Foreground="White" FontSize="16"/>
                    <TextBox x:Name="Teg_Jarvis" HorizontalAlignment="Left" Height="12" Margin="51,80,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="512" BorderBrush="Black" Opacity="0.5" GotFocus="Teg_Jarvis_GotFocus"/>
                    <TextBlock HorizontalAlignment="Left" Height="23" Margin="51,182,0,0" TextWrapping="Wrap" Text="Придумайте пароль" VerticalAlignment="Top" Width="512" Foreground="White" FontSize="16"/>
                    <PasswordBox x:Name="Password_new" HorizontalAlignment="Left" Height="23" Margin="51,228,0,0" VerticalAlignment="Top" Width="512" BorderBrush="Black" Opacity="0.5" GotFocus="Password_new_GotFocus"/>
                    <TextBlock HorizontalAlignment="Left" Height="20" Margin="51,271,0,0" TextWrapping="Wrap" Text="Повторите пароль" VerticalAlignment="Top" Width="512" Foreground="White" FontSize="16"/>
                    <PasswordBox x:Name="Password_new_2" HorizontalAlignment="Left" Height="23" Margin="51,296,0,0" VerticalAlignment="Top" Width="512" BorderBrush="Black" Opacity="0.5" Foreground="Black" GotFocus="Password_new_2_GotFocus"/>
                    <TextBlock HorizontalAlignment="Left" Height="18" Margin="51,112,0,0" TextWrapping="Wrap" Text="(Аа-Яя, 0-9, одиночные пробелы, не может начинаться с цифры)" VerticalAlignment="Top" Width="512" Foreground="White" FontSize="14"/>
                    <TextBlock HorizontalAlignment="Left" Height="18" Margin="66,205,0,0" TextWrapping="Wrap" Text="Минимальная длина пароля - восемь символов." VerticalAlignment="Top" Width="512" Foreground="White" FontSize="14"/>

                    <TextBlock x:Name="Error_Text" HorizontalAlignment="Left" Height="21" Margin="91,347,0,0" TextWrapping="Wrap" Text="в помеченное выше поле не введены данные, либо они не действительны" VerticalAlignment="Top" Width="499" Foreground="White" FontSize="14" Visibility="Collapsed"/>
                    <Rectangle x:Name="Error" HorizontalAlignment="Left" Height="20" Margin="574,87,0,0" VerticalAlignment="Top" Width="21" Visibility="Collapsed">
                        <Rectangle.Fill>
                            <ImageBrush ImageSource="Assets/!.png"/>
                        </Rectangle.Fill>
                    </Rectangle>
                    <Rectangle x:Name="Error_Copy1" HorizontalAlignment="Left" Height="20" Margin="574,232,0,0" VerticalAlignment="Top" Width="21" Visibility="Collapsed">
                        <Rectangle.Fill>
                            <ImageBrush ImageSource="Assets/!.png"/>
                        </Rectangle.Fill>
                    </Rectangle>
                    <Rectangle x:Name="Error_Copy2" HorizontalAlignment="Left" Height="20" Margin="574,301,0,0" VerticalAlignment="Top" Width="21" Visibility="Collapsed">
                        <Rectangle.Fill>
                            <ImageBrush ImageSource="Assets/!.png"/>
                        </Rectangle.Fill>
                    </Rectangle>
                    <Rectangle x:Name="Error_Copy" HorizontalAlignment="Left" Height="20" Margin="66,345,0,0" VerticalAlignment="Top" Width="21" Visibility="Collapsed">
                        <Rectangle.Fill>
                            <ImageBrush ImageSource="Assets/!.png"/>
                        </Rectangle.Fill>
                    </Rectangle>
                </Grid>
                <!--#3-->
                <Grid Style="{StaticResource LayoutRootStyle}" x:Name="Grid_3" HorizontalAlignment="Left" Height="456" Margin="0,3,0,-3" VerticalAlignment="Top" Width="665" Visibility="Collapsed" Background="#FF34364D">

                    <Rectangle x:Name="Error2" HorizontalAlignment="Left" Height="20" Margin="69,359,0,0" VerticalAlignment="Top" Width="21" Visibility="Collapsed">
                        <Rectangle.Fill>
                            <ImageBrush ImageSource="Assets/!.png"/>
                        </Rectangle.Fill>
                    </Rectangle>

                    <Button Style="{StaticResource YesAppBarButtonStyle}" AutomationProperties.Name=" "  Margin="396,380,0,10" Width="78" Click="Button_Click_7"/>
                    <Button Style="{StaticResource PreviousAppBarButtonStyle}" AutomationProperties.Name=" "  Margin="313,380,0,10" Width="78" Click="Button_Click_8"/>
                    <Button x:Name="Out3" Style="{StaticResource OutAppBarButtonStyle}" AutomationProperties.Name=" "  Margin="474,380,0,10" Width="73" BorderThickness="2" HorizontalAlignment="Left" Click="Out3_Click"/>

                    <TextBlock x:Name="Error_Text2" HorizontalAlignment="Left" Height="21" Margin="95,361,0,0" TextWrapping="Wrap" Text="в помеченное выше поле не введены данные, либо они не действительны" VerticalAlignment="Top" Width="499" Foreground="White" FontSize="14" Visibility="Collapsed"/>
                    <TextBlock HorizontalAlignment="Left" Height="21" Margin="69,50,0,0" TextWrapping="Wrap" Text="Ваше имя" VerticalAlignment="Top" Width="94" Foreground="White" FontSize="16"/>
                    <TextBox x:Name="Name" HorizontalAlignment="Left" Height="12" Margin="69,71,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="468" BorderBrush="Black" Opacity="0.5"/>
                    <TextBlock HorizontalAlignment="Left" Height="18" Margin="69,113,0,0" TextWrapping="Wrap" Text="Фамилия" VerticalAlignment="Top" Width="94" Foreground="White" FontSize="16"/>
                    <TextBox x:Name="Familiya" HorizontalAlignment="Left" Height="12" Margin="69,136,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="468" BorderBrush="Black" Opacity="0.5"/>
                    <TextBlock HorizontalAlignment="Left" Height="24" Margin="69,173,0,0" TextWrapping="Wrap" Text="Дата рождения" VerticalAlignment="Top" Width="151" Foreground="White" FontSize="16"/>
                    <TextBox x:Name="Day_of_Birth" HorizontalAlignment="Left" Height="12" Margin="69,202,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="138" BorderBrush="Black" Text="День" Opacity="0.5" GotFocus="Day_of_Birth_GotFocus"/>
                    <ComboBox x:Name="Month_of_Birth" HorizontalAlignment="Left" Height="32" Margin="238,202,0,0" VerticalAlignment="Top" Width="153" BorderBrush="#CC000000" Opacity="0.5">
                        <ComboBoxItem Content="Января"/>
                        <ComboBoxItem Content="Февраля"/>
                        <ComboBoxItem Content="Мара"/>
                        <ComboBoxItem Content="Апреля"/>
                        <ComboBoxItem Content="Мая"/>
                        <ComboBoxItem Content="Июня"/>
                        <ComboBoxItem Content="Июля"/>
                        <ComboBoxItem Content="Августа"/>
                        <ComboBoxItem Content="Сентября"/>
                        <ComboBoxItem Content="Октября"/>
                        <ComboBoxItem Content="Ноября"/>
                        <ComboBoxItem Content="Декабря"/>
                    </ComboBox>
                    <TextBox x:Name="Year_of_Birth" HorizontalAlignment="Left" Height="12" Margin="416,202,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="121" BorderBrush="Black" Text="Год" Opacity="0.5" GotFocus="Year_of_Birth_GotFocus"/>
                    <TextBlock HorizontalAlignment="Left" Height="19" Margin="69,245,0,0" TextWrapping="Wrap" Text="Страна" VerticalAlignment="Top" Width="64" Foreground="White" FontSize="16"/>
                    <ComboBox x:Name="Country" HorizontalAlignment="Left" Height="32" Margin="69,269,0,0" VerticalAlignment="Top" Width="138" BorderBrush="#CC000000" RenderTransformOrigin="0.477,1.812" Opacity="0.5">
                        <ComboBoxItem Content="США"/>
                        <ComboBoxItem Content="Россия"/>
                    </ComboBox>
                    <TextBlock HorizontalAlignment="Left" Height="19" Margin="238,245,0,0" TextWrapping="Wrap" Text="Пол" VerticalAlignment="Top" Width="64" Foreground="White" FontSize="16"/>
                    <ComboBox x:Name="Floor" HorizontalAlignment="Left" Height="32" Margin="238,269,0,0" VerticalAlignment="Top" Width="153" BorderBrush="#CC000000" RenderTransformOrigin="0.477,1.812" Opacity="0.5">
                        <ComboBoxItem Content="Мужской"/>
                        <ComboBoxItem Content="Женский"/>
                        <ComboBoxItem Content="Не выбрано"/>
                    </ComboBox>
                    <CheckBox x:Name="Terms_OFF" Content="Я соглашаюсь с " HorizontalAlignment="Left" Height="30" Margin="69,324,0,0" VerticalAlignment="Top" Width="151" FontSize="14"/>
                    <HyperlinkButton Content="Условиями использования." HorizontalAlignment="Left" Height="46" Margin="185,315,0,0" VerticalAlignment="Top" Width="216" Foreground="#FFDBCCFF" FontSize="14" Click="HyperlinkButton_Click_1"/>
                    <Rectangle x:Name="Error2_Copy" HorizontalAlignment="Left" Height="20" Margin="550,207,0,0" VerticalAlignment="Top" Width="21" Visibility="Collapsed">
                        <Rectangle.Fill>
                            <ImageBrush ImageSource="Assets/!.png"/>
                        </Rectangle.Fill>
                    </Rectangle>
                    <Rectangle x:Name="Error2_Copy1" HorizontalAlignment="Left" Height="20" Margin="416,330,0,0" VerticalAlignment="Top" Width="21" Visibility="Collapsed">
                        <Rectangle.Fill>
                            <ImageBrush ImageSource="Assets/!.png"/>
                        </Rectangle.Fill>
                    </Rectangle>
                </Grid>
                <TextBlock x:Name="Error_Text_Copy" HorizontalAlignment="Left" Height="21" Margin="83,341,0,0" TextWrapping="Wrap" Text="в помеченное выше поле не введены данные, либо они не действительны" VerticalAlignment="Top" Width="499" Foreground="White" FontSize="14" Visibility="Collapsed"/>
                <Rectangle x:Name="Error_Copy3" HorizontalAlignment="Left" Height="20" Margin="58,339,0,0" VerticalAlignment="Top" Width="21" Visibility="Collapsed">
                    <Rectangle.Fill>
                        <ImageBrush ImageSource="Assets/!.png"/>
                    </Rectangle.Fill>
                </Rectangle>
                <Rectangle x:Name="Error_Copy4" HorizontalAlignment="Left" Height="20" Margin="568,278,0,0" VerticalAlignment="Top" Width="21" Visibility="Collapsed">
                    <Rectangle.Fill>
                        <ImageBrush ImageSource="Assets/!.png"/>
                    </Rectangle.Fill>
                </Rectangle>
            </Grid>
            <Grid x:Name="Grid_Shag_1" Style="{StaticResource LayoutRootStyle}" HorizontalAlignment="Left" Height="456" Margin="622,5,0,0" VerticalAlignment="Top" Width="46" Background="#FF65C6EA">
                <TextBlock x:Name="Shag" HorizontalAlignment="Left" Height="32" Margin="15,393,0,0" TextWrapping="Wrap" Text="1" VerticalAlignment="Top" Width="23" FontSize="24" FontFamily="Segoe UI Symbol"/>
            </Grid>
        </Grid>
        <Image HorizontalAlignment="Left" Height="64" Margin="-88,65,0,0" VerticalAlignment="Top" Width="524" Source="Assets/logomain.png"/>
    </Grid>
</Page>